using System.Collections;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using Nsb.Classes;
using YoshiBase.Classes;

namespace Yoshi.Classes
{
    [IgnoreNamespace]
    public class TestData
    {
        public static YoshiUser Natalie()
        {
            YoshiUser user = new YoshiUser();

            user.name = "Natalie Kinsey";
            user.id = "793889201";
            user.email = "orangegroveatdawn@gmail.com";
            user.bio = "I woke up this morning feeling whole heartedly excited to play with this new Yes Play! site.  I love feeling the ease and  flow opening with this portal of delicious communication and play!  I love how in the zone this is for my desire to collaborate on the Yes, PLay, Love  dating site and be able share our 'work' easily with others.";
            user.photo = Uri.Img("Photos/Natalie.JPG");

            return user;
        }

        public static YoshiUser Meg()
        {
            YoshiUser user = new YoshiUser();

            user.name = "Meg Ryan";
            user.id = "MegRyan";
            user.email = "megryan@gmail.com";
            user.bio = "Blond-haired, blue-eyed with an effervescent personality, Meg Ryan graduated from Bethel high school, Bethel in June 1979. Moving to New York, she attended New York University where she majored in journalism. To earn extra money while working on her degree, Meg went into acting using her new name Meg Ryan. In 1981, she had her big screen debut as Candice Bergen's daughter in George Cukor's last film Rich and Famous (1981). She tried out and was cast as Betsy in the day time television soap \"As the World Turns\"";
            user.photo = Uri.Img("Photos/Meg-Ryan.jpg");

            return user;
        }

        public static IEnumerable<EmailItem> TestDataRcvdMail()
        {
            YoshiUser u1 = Master.Profile.My;
            YoshiUser u2 = Natalie();
            YoshiUser u3 = Meg();
            List<EmailItem> list = new List<EmailItem>();
            list.Add((EmailItem)(object)
                                new Dictionary(
                                    "alias", "Meg Ryan",
                                    "fromId", u3.id,
                                    "toId", u1.id,
                                    "email", u3.email,
                                    "subject", "Are you free tonight?",
                                    "message", "Are you free for dinner at Ruth Chriss in Boston?",
                                    "createTime", 1000,
                                    "unread", true
                                    ));
            list.Add((EmailItem)(object)
                                new Dictionary(
                                    "alias", "Natalie Kinsey",
                                    "fromId", u2.id,
                                    "toId", u1.id,
                                    "email", u2.email,
                                    "subject", "Over the clover",
                                    "message", "Over the clover is where you will find the end of the rainbow and the key to my heart.<br>Love<br>Natalie",
                                    "createTime", 2000
                                    ));
            list.Add((EmailItem)(object)
                                new Dictionary(
                                    "alias", "Natalie Kinsey",
                                    "fromId", u2.id,
                                    "toId", u1.id,
                                    "email", u2.email,
                                    "subject", "Hey sug",
                                    "message", "When you gonna finish that iPhone bubbly emailer?",
                                    "createTime", 4000,
                                    "unread", true
                                    ));
            list.Reverse();
            return list;
        }

        public static IEnumerable<EmailItem> TestDataSentMail()
        {
            YoshiUser u1 = Master.Profile.My;
            YoshiUser u2 = Natalie();
            List<EmailItem> list = new List<EmailItem>();
            list.Add((EmailItem)(object)
                                new Dictionary(
                                    "alias", "Nathan Bawden",
                                    "fromId", u1.id,
                                    "toId", u2.id,
                                    "email", u1.email,
                                    "subject", "About last night ...",
                                    "message", "I really loved the way you suggested we run around the house between shows. That was exilerating!!<br>Love<br>Nathan",
                                    "createTime", 3000
                                    ));
            list.Reverse();
            return list;
        }
    }
}
